name | value |
---|---|
partnerPersonTradeName | Test AG |
billingContactCaption | Test AG - billing department |
billingContactEmailAddress | billing@test-ag.example.org |
debitorNumberSuffix | 00 |
billable | true |
vatId | VAT123456 |
vatCountryCode | DE |
vatBusiness | true |
vatReverseCharge | false |
defaultPrefix | tst |
GET /api/hs/office/relations?relationType=PARTNER&personData=Test+AG
=> status: 200 OK
[ {
"uuid" : "a4914399-27dc-4094-bf76-d6230d4f8373", // partnerRelationUuid
"anchor" : {
"uuid" : "c6575205-1480-4b70-a30b-d0c5a1d7cc99", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "f8f6ad7e-53d2-4cf0-9cb9-30ca2767c599", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "22c8432b-6fc1-44b4-a977-e1d00327b323", // Contact: Test AG - China
"caption" : "Test AG - China",
"postalAddress" : {
"city" : "Dongguan City",
"firm" : "Test AG",
"name" : "Fi Zhong-Kha",
"street" : "No.2 Commercial Second Street",
"country" : "China",
"building" : "Thi Chi Koh Building",
"district" : "Niushan Wei Wu",
"province" : "Guangdong Province"
},
"emailAddresses" : {
"main" : "norden@test-ag.example.org"
},
"phoneNumbers" : {
"phone" : "++15 999 654321"
}
}
} ]
In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.
POST /api/hs/office/bankaccounts
{
"holder" : "Test AG - refund bank account",
"iban" : "DE88100900001234567892",
"bic" : "BEVODEBB"
}
=> status: 201 CREATED cefa37d7-33c7-4164-9ea8-28147700daa9
POST /api/hs/office/contacts
{
"caption" : "Test AG - billing department",
"emailAddresses" : {
"main" : "billing@test-ag.example.org"
}
}
=> status: 201 CREATED ffbe24a8-f763-4559-a60b-bc1b4ad3f32f
POST /api/hs/office/debitors
{
"debitorRel" : {
"anchor.uuid" : "f8f6ad7e-53d2-4cf0-9cb9-30ca2767c599", // partnerPersonUuid
"holder.uuid" : "f8f6ad7e-53d2-4cf0-9cb9-30ca2767c599", // partnerPersonUuid
"contact.uuid" : "ffbe24a8-f763-4559-a60b-bc1b4ad3f32f" // Contact: Test AG - billing department
},
"debitorNumberSuffix" : "00",
"billable" : true,
"vatId" : "VAT123456",
"vatCountryCode" : "DE",
"vatBusiness" : true,
"vatReverseCharge" : false,
"refundBankAccount.uuid" : "cefa37d7-33c7-4164-9ea8-28147700daa9", // BankAccount: Test AG - refund bank account
"defaultPrefix" : "tst"
}
=> status: 201 CREATED 3766040f-38a5-42a7-b2c2-92290af2d33c
generated on 03-10-2025 12:07:41 for branch master